package main.java.com.huizluo.stagetwo.phone;

public class Test {
    public static void main(String[] args) {
        //办卡
        PhoneCard card = new PhoneCard("huizluo","123123","18886382625",CardType.BIG_CARD);
        //充值
        card.change(100.00);
        //查看卡信息
        card.ShowInfo();

        //选择通话套餐
        CallCombo call = new CallComboImpl(200,100,58.00);
        call.ShowAllCombo();
        card.selectCallCombo(call);

        //选择流量套餐
        NetCombo net = new NetComboImpl(2000000,10.00);
        net.ShowAllCombo();
        card.selectNetCombo(net);

        //打电话
        call.call(20,card);
        //显示通话统计
        card.ShowInfo();

        //上网
        net.online(100,card);
        //显示上网流量使用
        card.ShowInfo();


        //打印消费记录
        card.getCostTotal().printInfo();
    }
}
